package bosque.unc.ayuda;

import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.Font;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.ScrollPaneConstants;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;

import java.awt.Toolkit;

import javax.swing.JTextArea;

import bosque.unc.enumerations.Ayuda;

import javax.swing.JLabel;

import java.awt.SystemColor;

import javax.swing.JScrollBar;

import java.awt.ScrollPane;

public class SensoresAyuda extends JFrame {

	private JPanel contentPane;
	
	private JTextArea textAreaSensores;
	private JScrollPane scroll;
	private JScrollPane scroll2;
	private JTextArea textAreaFuncTrans;
	private JTextArea textAreaFactCorr;
	
	

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try
				{
					System.out.println("Look and Fell: " + UIManager.getSystemLookAndFeelClassName());
					UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
				}
				catch (Exception ex)
				{
					System.out.println("Failed loading L&F: ");
					System.out.println(ex);
				}
	
				try {
					SensoresAyuda frame = new SensoresAyuda();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public SensoresAyuda() {
		setIconImage(Toolkit.getDefaultToolkit().getImage("D:\\WorkTesis\\Scoba\\src\\bosque\\unc\\gui\\resources\\ayuda.png"));
		setTitle("Pantalla de ayuda para los sensores");
		setResizable(false);
		//setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 628, 523);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		
		
		
		textAreaSensores = new JTextArea();
		textAreaSensores.setBackground(SystemColor.control);
		textAreaSensores.setEditable(false);
		textAreaSensores.setBounds(10, 36, 602, 22);
		textAreaSensores.setText(Ayuda.AYUDA_PANTALLA_SENSORES_LECTURAS.getMsg());
		contentPane.add(textAreaSensores);
		
		textAreaFuncTrans = new JTextArea();
		textAreaFuncTrans.setText(Ayuda.AYUDA_PANTALLA_SENSORES_FACTORES_FUNCION_TRANSF.getMsg());
		textAreaFuncTrans.setBackground(SystemColor.control);
		scroll = new JScrollPane(textAreaFuncTrans);
		textAreaFuncTrans.setEditable(false);
		scroll.setBounds(10, 102, 602, 228);
		contentPane.add(scroll);
	 	
		JLabel lblPanelSensores = new JLabel("Panel Sensores");
		lblPanelSensores.setFont(new Font("Arial", Font.BOLD, 13));
		lblPanelSensores.setBounds(10, 11, 175, 14);
		contentPane.add(lblPanelSensores);
		
		JLabel lblPanelFactoresDe = new JLabel("Panel Factores de las funciones de transferencia");
		lblPanelFactoresDe.setFont(new Font("Arial", Font.BOLD, 13));
		lblPanelFactoresDe.setBounds(10, 77, 363, 14);
		contentPane.add(lblPanelFactoresDe);
		
		JLabel lblPanelFactoresDe_1 = new JLabel("Panel Factores de correccion");
		lblPanelFactoresDe_1.setFont(new Font("Arial", Font.BOLD, 13));
		lblPanelFactoresDe_1.setBounds(10, 353, 247, 14);
		contentPane.add(lblPanelFactoresDe_1);
		
		textAreaFactCorr = new JTextArea();
		textAreaFactCorr.setEditable(false);
		textAreaFactCorr.setBackground(SystemColor.control);
		textAreaFactCorr.setText(Ayuda.AYUDA_PANTALLA_SENSORES_FACTORES_CORRECCION.getMsg());
		scroll2 = new JScrollPane(textAreaFactCorr);
		scroll2.setBounds(10, 378, 602, 106);
		contentPane.add(scroll2);
		

	}
}
